
<g:if test="${dataList.size() > 0}">

    <meta charset="utf-8">
    <style type="text/css">
    th{
        width: 9em;
    }
    tr,td{
        border: 1px #ADBFCD solid;
    }
    .odd{
        background-color: #EBEBEB;
    }
</style>

    <table class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="180" align="center" rowspan="2">工步</th>
            <th width="50" align="center" colspan="2">白班</th>
            <th width="50" align="center" colspan="2">夜班</th>
            <th width="50" align="center" colspan="2">总计</th>
            <th width="50" align="center" rowspan="2">WIP</th>
        </tr>
        <tr>
            <th width="75" align="center">产出数</th>
            <th width="75" align="center">良率</th>

            %{-- <th width="50" align="center">投入数</th>--}%
            <th width="75" align="center">产出数</th>
            <th width="75" align="center">良率</th>


            %{-- <th width="50" align="center">投入数</th>--}%
            <th width="75" align="center">产出数</th>
            <th width="75" align="center">良率</th>
        </tr>
        </thead>
        <tbody>
        <g:each in="${dayInOutYield2}" status="i" var="dataInstance">
            <tr>
                <td>${dataInstance.STEP_DESC}</td>
                <g:each in="${dayInOutYield}" status="j" var="dataInstance1">
                    <g:if test="${dataInstance.STEP_DESC==dataInstance1.STEP_DESC}">
                    %{-- <td>--}%%{--${dataInstance1.TRACK_IN_MAIN_QTY}--}%%{--</td>--}%
                        <td  width="75" align="center">${dataInstance1.TRACK_OUT_MAIN_QTY}</td>
                        <td  width="75" align="center">${dataInstance1.YIELD}%</td>
                    </g:if>
                </g:each>
                <g:each in="${dayInOutYield1}" status="k" var="dataInstance2">
                    <g:if test="${dataInstance.STEP_DESC==dataInstance2.STEP_DESC}">
                    %{--    <td>--}%%{--${dataInstance2.TRACK_IN_MAIN_QTY}--}%%{--</td>--}%
                        <td width="75" align="center">${dataInstance2.TRACK_OUT_MAIN_QTY}</td>
                        <td width="75" align="center">${dataInstance2.YIELD}%</td>
                    </g:if>
                </g:each>
            %{--<td>--}%%{--${dataInstance.TRACK_IN_MAIN_QTY}--}%%{--</td>--}%
                <td width="75" align="center">${dataInstance.TRACK_OUT_MAIN_QTY}</td>
                <td width="75" align="center">${dataInstance.YIELD}%</td>
                <g:each in="${dayInOutYield3}" status="l" var="dataInstance3">
                    <g:if test="${dataInstance.STEP_DESC==dataInstance3.STEP_DESC}">
                        <td>${dataInstance3.WIP_QTY}</td>
                    </g:if>
                </g:each>
            </tr>
        </g:each>
        <g:each in="${dayInOutYield4}" status="i" var="dataInstance4">
            <tr>
                <th align="center" width="150">入库数量</th>
                <td align="center" width="50" colspan="2">${dataInstance4.SHIPQTY_DAY}</td>
                <td align="center" width="50" colspan="2">${dataInstance4.SHIPQTY_NIGHT}</td>
                <td align="center" width="50" colspan="2">${dataInstance4.SHIPQTY_TOTAL}</td>
                <td align="center" width="50"></td>
            </tr>
        </g:each>
        </tbody>
    </table>
</g:if>
